package uk.co.hs.constants;

/**
 * TableConstants.
 */
public class TableConstants
{
	/** COMPARATORS */
  public static final String DATE_COMPARATOR = "DATE_COMPARATOR";
  public static final String NUM_COMPARATOR = "NUM_COMPARATOR";
  public static final String TEXT_COMPARATOR = "TEXT_COMPARATOR";

  public static final String BOOL_COMPARATOR = "BOOL_COMPARATOR";

  /** VIEWS */
  public static final String VIEW_LIST_RESULTS = "jsp/tiles/table/resultsAjaxSubmit";


  public static final String SEARCH_FILTER_JSP = "jsp/tiles/search/filter";
  public static final String SEARCH_RESULTS_JSP = "jsp/tiles/search/resultsAjaxSubmit";

  /** ACTIONS */
  public static final String ACTION_PAGE = "page";
  public static final String ACTION_CHANGE_PER_PAGE = "changePerPage";
  public static final String ACTION_APPLY = "apply";
  public static final String ACTION_REFRESH = "refresh";

  public static final String ACTION_CLEAR = "clear";
  public static final String ACTION_SORT = "sort";



  public static final String ACTION_NESTED = "getNestedRows";
  public static final String ACTION_ADD_FILTER = "addFilter";
  public static final String ACTION_CLEAR_FILTER = "clearFilter";
  public static final String ACTION_RELEASE_JOB = "releaseJob";
  public static final String ACTION_DELETE_JOB = "deleteJob";
  public static final String ACTION_MODIFY_RELEASE = "modifyAndReleaseJob";
  public static final String ACTION_GET_CSV_FILE = "getCSVFile";
  public static final String ACTION_EXPORT_ERRORS = "exportErrors";

  /** REQUEST ATTRIBUTES */
  public static final String REQ_ATTR_COUNT = "COUNT";
  public static final String REQ_ATTR_HEADERS = "HEADERS";
  public static final String REQ_ATTR_RESULTS = "RESULTS";
  public static final String REQ_ATTR_CURRENT_PAGE = "CURRENT_PAGE";
  public static final String REQ_ATTR_RESULTS_PER_PAGE = "RESULTS_PER_PAGE";
  public static final String REQ_ATTR_SORT_ORDER = "SORT_ORDER";
  public static final String REQ_ATTR_SORT_COLUMN = "SORT_COLUMN";
  public static final String REQ_ATTR_FORM_NAME = "FORM_NAME";
  public static final String REQ_ATTR_ACTION_NAME = "ACTION_NAME";








  /** FILTER TYPES */
  public static final String FILTER_TYPE_ENUM = "enum";
  public static final String FILTER_TYPE_NUMBER = "number";
  public static final String FILTER_TYPE_STRING = "string";
  public static final String FILTER_TYPE_DATE = "date";

  public static final String FILTER_TYPE_ENUM_STRING = FILTER_TYPE_ENUM + "String";
  public static final String FILTER_TYPE_ENUM_LONG = FILTER_TYPE_ENUM + "Long";
  public static final String FILTER_TYPE_ENUM_DOUBLE = FILTER_TYPE_ENUM + "Double";
  public static final String FILTER_TYPE_ENUM_INTEGER = FILTER_TYPE_ENUM + "Integer";
  public static final String FILTER_TYPE_ENUM_BIG_DECIMAL = FILTER_TYPE_ENUM + "BigDecimal";
  public static final String FILTER_TYPE_ENUM_BOOLEAN = FILTER_TYPE_ENUM + "Boolean";
  public static final String FILTER_TYPE_NUMBER_LONG = FILTER_TYPE_NUMBER + "Long";
  public static final String FILTER_TYPE_NUMBER_DOUBLE = FILTER_TYPE_NUMBER+ "Double";
  public static final String FILTER_TYPE_NUMBER_INTEGER = FILTER_TYPE_NUMBER+ "Integer";
  public static final String FILTER_TYPE_NUMBER_BIG_DECIMAL = FILTER_TYPE_NUMBER+ "BigDecimal";

  /** GENERAL */
  public static final Integer DEFAULT_RECORDS_PER_PAGE = 10;
  public static final String RECORDS_PER_PAGE_LIST = "RECORDS_PER_PAGE_LIST";
  public static final String FILTER_OPTIONS = "FILTER_OPTIONS";

}
